package com.ygqh.baby.model;

import java.io.Serializable;
import java.net.URLDecoder;
import java.util.Date;

public class YgProductCommentModel implements Serializable {

	private static final long serialVersionUID = -1969796355099383705L;
	private Long id;
	private String content;
	private String replyContent;
	private String images;
	private String commentTag;
	private Date createTime;
	// user
	private Long userId;
	private String headImageUrl;
	private String nickName;
	// sku
	private String sizeName;
	// product
	private String shortName;

	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getContent() {
		if (content == null)
			return null;
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public String getCommentTag() {
		return commentTag;
	}

	public void setCommentTag(String commentTag) {
		this.commentTag = commentTag;
	}

	public String getHeadImageUrl() {
		
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		
		if(headImageUrl.indexOf("/0")>=0&&headImageUrl.startsWith("http://wx.qlogo.cn"))
			this.headImageUrl =headImageUrl.replace("/0", "/64");
		else		
		this.headImageUrl = headImageUrl;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getSizeName() {
		return sizeName;
	}

	public void setSizeName(String sizeName) {
		this.sizeName = sizeName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

}
